package com.myproject.mall.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("scmall_follow")
@Schema(description = "关注")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Follow {
    @Schema(description = "关注ID")
    @TableId(value = "follow_id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "用户ID")
    @TableField(value = "follow_user_id")
    private String userId;

    @Schema(description = "关注对象ID")
    @TableField(value = "follow_shop_id")
    private Long shopId;

    @Schema(description = "关注时间")
    @TableField(value = "follow_create_time")
    private LocalDateTime createTime;
}
